package com.txtdhis.consumer.manage.service;

import com.txtdhis.common.domain.User;
import com.txtdhis.common.domain.page.PageRequest;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;


/**
 * @program: UserService
 * @description: 启动类
 * @author: zhanglei
 * @create: 2020-08-30 12:51
 */

@FeignClient("tjxs-api-user")
public interface UserService {


    @RequestMapping("/getConfig")
    String getConfig(@RequestParam("port") String num);

    @RequestMapping("setCache/{val}")
    String setCache(@PathVariable("val") String val);

    @GetMapping("getUser/{id}")
    User getUser(@PathVariable("id") Integer id);

    @RequestMapping("queryUserForList")
     List<User> queryUserForList(User record);

    @RequestMapping("findPage")
    Object findPage(@RequestBody PageRequest pageQuery);

    @RequestMapping("insert")
    int insert(User user);
}
